package main

import "fmt"

func main() {

	var lan = "feng"
	// 同时申明多个变量
	var a, b = "test1", "test2"
	fmt.Println(a, b, lan)

	var d, c int = 1, 2
	fmt.Println(d, c)

	var m, n = "string", 3
	fmt.Println(m, n)

	// go自动判断已初始化的变量类型
	var s = true
	fmt.Println(s)

	// int 类型默认值 0
	var e int
	fmt.Println(e)

	var g string
	fmt.Println(g)

	// 声明并初始化变量的简写
	x := "nanfeng"
	fmt.Println(x)

}
